import http from "../utils/http/service";

export const getList = (data): any => {
  return http.post("/snow-admin/alterationManage/alterationList", data);
};

export const onDelete = (data): any => {
  return http.post("/snow-admin/alterationManage/delete", data);
};

export const onAdd = (data): any => {
  return http.post("/snow-admin/alterationManage/add", data);
};

export const onSave = (data): any => {
  return http.post("/snow-admin/alterationManage/update", data);
};

export const getChangeInfo = (data): any => {
  return http.get(`/snow-admin/alterationManage/info/${data.id}`);
};

// 文档类型
export const postDictList = (data): any => {
  return http.post("/snow-admin/sysDict/dictList", data);
};
